﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class gold_GetMd5 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {

        string strCode = System.DateTime.Now.Date.ToString() ;
        txtCode.Text = GetMd5(strCode);


    }

    private string GetMd5(string strcode)
    {
        string strReturn  = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(strcode, "MD5"); ;
        return strReturn;
    }
}